JAVA: Problems with Calculating the Simple Moving Average

join shbcf.ru